<extend name="Public:header"/>
<block name="main-content">
    <section>
        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                旅拍研究所文案管理
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li class="active"> 旅拍研究所文案更新 </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            旅拍研究所文案更新
                            <span class="tools pull-right">
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                                <a href="javascript:;" class="fa fa-times"></a>
                             </span>
                        </header>
                        <div class="panel-body">

                            <!-- Modal -->
                            <form action="__APP__/Admin/Activity/renew" method="post" enctype="multipart/form-data">
                                <volist name="list" id="ao">
                                    <div class="form-group">
                                        <label>基地选择</label>
                                        <select name="c_id" class="form-control">
                                            <volist name="j_list" id="bo">
                                                <option value="{$bo.id}">{$ao.name}</option>
                                            </volist>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>城市</label>
                                        <input type="text" class="form-control" name="title"  value="{$ao.city}" placeholder="新闻标题">
                                        <input type="hidden" class="form-control" name="id"  value="{$ao.id}">
                                    </div>
                                    <div class="form-group">
                                        <label>旅拍文章名字</label>
                                        <input type="text" class="form-control"  value="{$ao.name}" name="name" required placeholder="旅拍文章名字">
                                    </div>
                                    <div class="form-group">
                                        <label>作者名字</label>
                                        <input type="text" class="form-control"  value="{$ao.author}" name="author" required placeholder="作者名字">
                                    </div>
                                    <div class="form-group">
                                        <label>出发时间</label>
                                        <input type="datetime-local" class="form-control" value="{$ao.start_time}" name="start_time"  placeholder="出发时间">
                                    </div>
                                    <div class="form-group">
                                        <label>出行天数</label>
                                        <input type="number" class="form-control" name="travel_days" value="{$ao.travel_days}" placeholder="出行天数">
                                    </div>
                                    <div class="form-group">
                                        <label>参与人物</label>
                                        <input type="text" class="form-control" name="partner" value="{$ao.partner}"  placeholder="参与人数">
                                    </div>
                                    <div class="form-group">
                                        <label>人均费用</label>
                                        <input type="number" class="form-control" name="price" value="{$ao.price}" placeholder="人均费用">
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">作者头像图片</label>
                                        <div class="col-md-9">
                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">
                                                    <img  name="avatar" src="{$ao.avatar}" alt="" />
                                                </div>
                                                <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 400px; max-height: 300px; line-height: 20px;"></div>
                                                <div>
                                                   <span class="btn btn-default btn-file">
                                                   <span class="fileupload-new"><i class="fa fa-paper-clip"></i>选择图片</span>
                                                   <span class="fileupload-exists"><i class="fa fa-undo"></i> 更换</span>
                                                   <input type="file" name="avatar" class="default"  />
                                                   </span>
                                                    <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload"><i class="fa fa-trash"></i> 取消</a>
                                                </div>
                                            </div>
                                            <br/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">旅拍首图</label>
                                        <div class="col-md-9">
                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">
                                                    <img  name="image" src="{$ao.image}" alt="" />
                                                </div>
                                                <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 400px; max-height: 300px; line-height: 20px;"></div>
                                                <div>
                                                   <span class="btn btn-default btn-file">
                                                   <span class="fileupload-new"><i class="fa fa-paper-clip"></i>选择图片</span>
                                                   <span class="fileupload-exists"><i class="fa fa-undo"></i> 更换</span>
                                                   <input type="file" name="image" class="default"  />
                                                   </span>
                                                    <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload"><i class="fa fa-trash"></i> 取消</a>
                                                </div>
                                            </div>
                                            <br/>
                                        </div>
                                    </div>


                                   <textarea id="editor_id" name="content" style="width:99%;height:600px;">
                                       {$ao.content}
                                   </textarea>
                                    <button type="submit" class="btn btn-default">更新</button>
                                </volist>
                            </form>
                            <!-- modal -->

                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->
    </section>

    <script charset="utf-8" src="__PUBLIC__/Editor/kindeditor.js"></script>
    <!--<script charset="utf-8" src="__PUBLIC__/Home/js/jquery-form.js"></script>-->

    <!--<script charset="utf-8" src="__PUBLIC__/Home/js/jquery-form.js"></script>-->
    <script src="__PUBLIC__/Admin/js/bootstrap-fileupload.min.js"></script>
    <script type="text/javascript">

        KindEditor.ready(function(K){
            window.editor = K.create('#editor_id');

        });

        KindEditor.options.filterMode = false;

        KindEditor.ready(function(K) {
            K.create('#editor_id');
        });


        var color="1";


    </script>


    <script type="text/javascript" src="__PUBLIC__/Admin/js/add.js"></script>
</block>